<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增商品分类</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="{$data.id}"/>
        <div class="form-item">
            <label class="item-label">商品分类</label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$data.name}">
            </div>
            <label class="item-label">统计分类</label>
            <div class="controls">
                <select name="pcategory_classify" class="text input-large">
                    <volist name="sp_pcategory_classify" id="vo">
                        <option value="{$vo.id}" <if condition="$vo.id eq $data.pid ">selected="selected"</if>>{$vo.name}</option>	
                    </volist>
                </select>
            </div>
            <label class="item-label">分类排序</label>
            <div class="controls">
                <input type="text" class="text input-large" name="sort" value="{$data.sort}">
            </div>
            <label class="item-label">分类属于</label>
            <div class="controls">
                <label class="radio-inline">
                    <input type="radio" name="type" id="inlineRadio1"   value="1" <eq name="data.type" value="1">checked</eq> > 销售分类
                </label>
                <label class="radio-inline">
                    <input type="radio" name="type" id="inlineRadio2"   value="2" <eq name="data.type" value="2">checked</eq>> 进货分类
                </label>
            </div>
            <label class="item-label">是否处理品分类</label>
            <div class="controls">
               
                <label class="radio-inline">
                    <input type="radio" name="isDisposal"   value="false" <eq name="data.isDisposal" value="0">checked</eq>> 否
                </label>
                 <label class="radio-inline">
                    <input type="radio" name="isDisposal"   value="true" <eq name="data.isDisposal" value="1">checked</eq>> 是
                </label>
            </div>
            <label class="item-label">是否活动商品分类</label>
            <div class="controls">
               
                <label class="radio-inline">
                    <input type="radio" name="isActivity"   value="0" <eq name="data.isActivity" value="0">checked</eq>> 否
                </label>
                 <label class="radio-inline">
                    <input type="radio" name="isActivity"   value="1" <eq name="data.isActivity" value="1">checked</eq>> 是
                </label>
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>
</block>


<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('SpPcategory/index')}');
    </script>
</block>
